package HLLib.purchase;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;

public class HLADBannerManager extends HLLibObject implements HLADBannerManager_H {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_PURCHASE, HLClassManager_H.LIB_CLASS_PURCHASE_ADBannerManager);
    }

    public static int adTpye;

    static HLIADBanner _ad = null;

    public static HLIADBanner GetAD() {
        return GetADByType(adTpye);
    }

    public static HLIADBanner GetADByType(int type) {
        if (_ad == null) {
            switch (type) {
            default: {
                _ad = new HLADMob();
                break;
            }
            }
        }
        return _ad;
    }
}
